#sitecore 8.1
Explore tagged Tumblr posts
myopicmage · 8 years ago
Text
Sitecore, Solr, and Many languages
Sitecore 7 added a content search API to interact with Lucene and Solr. I'm sure anyone who has ever worked with search will tell you that search is hard, as it requires a lot of customisation that is entirely per-site, and what works for someone else might not work for you.
I'm here to tell you what worked for me, a really specific use case involving Sitecore 8.1 update 4, Apache Solr 6.2, and searching 7 regions with 4 different languages.
We're using some internal libraries on top of the content search API, but they eventually make the same calls as everyone else.
We started out with a fairly standard content search, which... mostly worked, even across languages. Condensed form:
var context = SearchIndex.CreateSearchContext(); var query = context.GetQueryable<oursearchresults>(); query.Content.Like(queryArgs);
There are actually a few issues with this approach:
The way our site is set up, 90% of the content we care about is actually in an item's components, not on the item itself.
This treats all languages the same way. Sitecore will send the same query to solr no matter the language being searched: _content:(*queryArgs*)
This will only give exact matches (even though .Like() is used)
Issue 1 is solved with a computed index field.
public class VisualizationField : MediaItemContentExtractor { public override object ComputeFieldValue(IIndexable indexable) { string baseValue = base.ComputeFieldValue(indexable) as string; Item indexItem = indexable as SitecoreIndexableItem; if (!ShouldIndexItem(indexItem)) { return baseValue; } var dataSources = Globals.LinkDatabase .GetReferences(indexItem) .Where(link => ShouldProcessLink(link, indexItem)) .Select(link => link.GetTargetItem()) .Where(targetItem => targetItem != null && targetItem.Versions.Count > 0) .Distinct(); var result = new StringBuilder(); if (!string.IsNullOrEmpty(baseValue)) { result.AppendLine(baseValue); } foreach (var dataSource in dataSources.Where(ShouldIndexDataSource)) { dataSource.Fields.ReadAll(); foreach (var field in dataSource.Fields.Where(ShouldIndexField)) { result.AppendLine(field.Value); } } return result.ToString(); } }
The ShouldProcess and ShouldIndex methods check to see whether or not something is actually related, and whether or not something should be put into the solr index based on some pretty basic parameters (correct content type, whether or not the component is actually being rendered).
Issue 2 caused me a great deal of stress until I stumbled across a blog post from the Sitecore 7 era. Sitecore added the concept of CultureExecutionContexts, which is a really fancy way of saying you can tell Sitecore to send over a search for content_t_{lang} instead of just _content by using this:
var context = SearchIndex.CreateSearchContext(); var culture = new CultureInfo(Sitecore.Context.Language.Name); var cultureCtx = new CultureExecutionContext(culture); var query = context.GetQueryable<oursearchresults>(cultureCtx); query.Content.Like(queryArgs);
And now your solr queries will look like this:
`content_t_{lang}:(*queryArgs*)`
Huzzah! You're searching specific languages! The problem quickly becomes, now you're doing language-specific exact match queries, which isn't very helpful.
Enter stemming algorithms.
The basic idea is that you give solr a word like engineer, and it boils the word down to the word's stem, so that you can run queries like engineer, engineers, engineered, or engineering and it will give you the same results. There are stemmers for basically every language you can think of, and the solr documentation explains how to use them far better than I ever could. The example schema.xml file generated by Sitecore actually contains basic analyzers that work fairly well. You will likely want to tweak them to fit your needs, but for an out-of-the-box solution, they work.
Once you've put the correct analyzers in place, restarted solr (this is important, solr does not pick up schema changes on the fly), and reindexed, you should now be getting decent search results in multiple languages.
Now is when language-specifics come into play. One of the languages this client supports is Polish, which does not come with out-of-the-box support from solr. Thankfully, there are already instructions for how to set that up.
The problem language for us, so far, has been German. German is what's known as a fusional language, which means that they tend to make new words by shoving old ones together. For instance, the German word for engineer is "ingenieur" and the word for civil engineer is "bauingenieur." This creates an issue for our search purposes, as "bauingenieur" and "ingenieur" should both return results for "ingenieur." The problem is solved with the Dictionary Compound Word Token Filter, a solr filter that will break words like bauingenieur down into their components "bau" and "ingenieur," so your results become what you'd expect. This requires a German word list, which can be a bit tricky to find, but once you have it, it works beautifully.
At this point, our search results have become downright useful and accurate (though we haven't implemented nice-to-haves like spellchecking and synonym searches), but there's a subtle bug. Sitecore isn't sending over the _content field to solr for each individual language properly. If your setup is like ours, with a very thin item and all of the pertinent content in subcomponents, the _content field in the index is going to be very sparse, basically containing nothing but the content in the top level item itself.
This is a subtle bug, and one that took several hours of debugging and someone far more versed in Sitecore than me to finally solve, but the issue is in the computed index field for the _content field.
var dataSources = Globals.LinkDatabase .GetReferences(indexItem) .Where(link => ShouldProcessLink(link, indexItem)) .Select(link => link.GetTargetItem()) .Where(targetItem => targetItem != null && targetItem.Versions.Count > 0) .Distinct();
This code will only get the components in Sitecore's default language. The rest of the code will properly put the correct language content from the top-level item into the index, but one of the checks it makes is whether or not a component is in the layout of that item in that version and language. If you have an item that only exists in the default Sitecore language, this works fine, but for any other language it's not going to get any of the subcomponents.
I haven't found any documentation about this, but the solution that is working for us is bringing in a LanguageSwitcher:
using (var switcher = new LanguageSwitcher(indexItem.Language)) { public class VisualizationField : MediaItemContentExtractor { public override object ComputeFieldValue(IIndexable indexable) { string baseValue = base.ComputeFieldValue(indexable) as string; Item indexItem = indexable as SitecoreIndexableItem; if (!ShouldIndexItem(indexItem)) { return baseValue; } var dataSources = Globals.LinkDatabase .GetReferences(indexItem) .Where(link => ShouldProcessLink(link, indexItem)) .Select(link => link.GetTargetItem()) .Where(targetItem => targetItem != null && targetItem.Versions.Count > 0) .Distinct(); var result = new StringBuilder(); if (!string.IsNullOrEmpty(baseValue)) { result.AppendLine(baseValue); } foreach (var dataSource in dataSources.Where(ShouldIndexDataSource)) { dataSource.Fields.ReadAll(); foreach (var field in dataSource.Fields.Where(ShouldIndexField)) { result.AppendLine(field.Value); } } return result.ToString(); } } }
Once you rebuild and reindex with the proper computed index field, your components will be properly indexed, your search results correct, and, hopefully, your clients happy.
0 notes
diaspark · 5 years ago
Text
The Ultimate Guide to Sitecore 9 Upgrade
Sitecore introduced a series of new features and competencies in the first run of the 9th version built on advanced commerce server integration and Microsoft Azure support.
Tumblr media
In terms of innovation on the cloud, Sitecore 9 was a major move. Introducing a series of new Sitecore 9 features and competencies in the first run of the 9th version built on advanced commerce server integration and Microsoft Azure support. Upgrading to the latest version of Sitecore will lead to noteworthy betterment and there’s never been a better time to upgrade to Sitecore 9. Sitecore has been recently named “Strong Digital Experience Platform” by Gartner and is always been the pivot of many CMS discussions since the beginning.
As of 2020, Sitecore will no longer provide support for the websites running on a version of 6 or 7. In 2021, you will not be receiving security updates or assistance for version 8.0 and 8.1 and in further years, this kind of support will end for 8.2 also. If you chose not to upgrade you are putting your website or your company in an insecure position.
Why Sitecore 9 is trending?
Sitecore 9 is smarter and powerful than its predecessors, loaded with new features like:-
Sitecore xConnect,
Cortex, Marketing Automation,
Sitecore Commerce, Forms,
JavaScript Services (JSS),
Federated Authentication and
Sitecore Experience Accelerator (SXA)
These features represent significant improvements, including the addition of new modules to enable Sitecore as an end-to-end solution for empowering marketers to create high-quality customer experiences.
TO KNOW MORE ABOUT EACH FEATURES IN DETAIL CLICK ON THE LINK BELOW:
https://www.diaspark.com/best-features-of-sitecore-9/
0 notes
igmguru1-blog · 6 years ago
Link
IgmGuru's Sitecore Developer Training Program will outfit you with a significant information and hands-on sensible sessions to set up the designers to build a solid, genuine MVC Solutions that collaborate with the organization, modifying of substance and its promoting limits of Sitecore 8.0, 8.1, 8.2 and 9.0 The course content is arranged by the invigorated timetable of Sitecore Developer Certification Guide.
0 notes
skybridge-infotech · 7 years ago
Text
Upgrade to Sitecore 9 Update 2 Installation - Skybridge Infotech
Tumblr media
Upgrade to Sitecore 9 Update 2 Installation (Sitecore XP 9.0.2)
Sitecore 9 Update 2 Setup Prerequisites
Windows 10 / Windows 8.1
Windows PowerShell Version 5.1 or later
MS SQL 2016 SP1 or later
MS SQL Management Studio
.NET 4.6.2 or later
Web Deploy 3.6
URL Rewrite 2.1
Solr 6.6.2
Java Runtime Environment
NSSM (Download nssm 2.24)
Sitecore License must have xDB enabled
Packages for XP Single (On-Premises Deployment)
Note:  Please verify all version before it gets started to set up
Contact the Best Offshore Sitecore CMS Developers Talent from India straightforwardly through BorderLess Mind. We offer experienced Sitecore CMS developers, engineers, software engineers, coders, analyzers, venture directors, scrum experts, modelers, specialists and advisors to work solely for you remotely. Little Mid-size organizations, offices and new businesses pick Borderless Mind for the neighborhood and seaward Sitecore CMS assets. Our Sitecore CMS advancement assets are prepared to begin working with you in a brief span. SkyBridge Infotech is a certified offshore design & development agency, who also specialize in Sitecore CMS, & Sitecore consultancy. We build content managed websites and mobile apps. 
Upgrade to Sitecore 9 Update 2 Installation Know More
0 notes
domainelisson-blog1 · 7 years ago
Text
Store Guys's Garments, Denims, Shoes, T.
At the Second Ministerial Meeting in May 1998, ministers, acknowledging that worldwide electronic commerce was expanding as well as creating new possibilities for profession, took on the Statement on Global Digital Business This required the establishment of a job program on e-commerce, which was embraced in September 1998. Discover exactly how shopping income from prints are leveraging the current technologies to optimize their gratification facilities and also fleet and distribution systems-- from furnishing employees with mobile phones that enhance rate, accuracy and also efficiency, to the Net of Things (IoT) as well as radio frequency identification technology (RFID) tools that drive real-time supply as well as asset visibility. Clicks-not-code administration makes Apttus simple to preserve, as well as the acquainted and secure cloud organisation platform drives productivity as well as adoption. The majority of Forever 21 products displayed at the Website are supplied in limited amounts and also are offered in choose Forever 21 shops, while supplies last. A large chunk of the almost 300-page record is committed to e-commerce, offering understanding into a selection of on-line retail trends, from growth as well as product search to on the internet retail advertising and marketing and also the function of social systems driving online sales. Clicking on the shopping bag icon can show numerous kinds of product details, including more images of the showcased product, images of various other items contained in the story, summaries and pricing info for the item and also links that lead straight to the brand's web site to buy the item. In addition, we may disclose your personal details and other details where we consider it suitable or needed to prevent an offense of our Terms of Use as well as Sale or various other agreements; to take safety measures against liability; to protect the rights, residential property, or safety of the Store, any type of specific, or the public; to protect the safety and keep and also stability of our solutions or framework; to safeguard ourselves as well as our solutions from deceitful, violent, or illegal uses; to investigate as well as protect ourselves against third party insurance claims or claims; or to assist federal government enforcement companies. This policy also relates to our style advertising and also sales tasks as well as various other interactions with European Citizens, consisting of individuals that visit our Forever 21 stores in Europe. From basic tees to adorable graphic t's in various fits, prints and shades, the only trouble you'll have is aiming to determine which of our tee t shirts you DON'T desire. This made it feasible for closed details systems to be opened up and also shared by outdoors parties for safe and secure data transmission - as well as the modern technology became the foundation upon which modern-day ecommerce was developed. Ecommerce Operatings systems is an evaluation site that shows the excellent, terrific, negative, and ugly of on-line store building software. 1998 - PayPal launches as ecommerce repayment system. GIVENCHY processes the information gathered above, in accordance with the personal Information and Cookies Charter", to manage requests to unsubscribe and also subscribe to the newsletters. Gain industry-level understandings concerning shopping as well as brick-and-mortar sales, fads and performance concerning the on-line customer trip. Whether you're just beginning to offer your items online or you have a well-established brand name, you can find several eCommerce choices to fit the demands of your company. Ever since, the service has actually expanded to added ecommerce systems and also allows Instagram customers to promptly click a product, and also most likely to that item's product page for acquisition. Contextual commerce needs a contemporary shopping platform. Utilizing information drew from Salesforce's Digital Marketing 2020 report, customer life time value (CLV) ranked as the most crucial advertisement costs optimization metric-- ahead of impressions as well as internet website traffic, brand name acknowledgment and lift, closed-won company, last-click attribution as well as multitouch attribution. Some on the internet shops have real-time chat attributes, yet most count on e-mails or call to manage consumer questions. One of the store's core values is to Supply WOW With Service," and also it meets that worth over and over again with its workers. Attract site visitors, convert potential customers, and engage clients with appropriate as well as conveniently available web content that is created to increase and influence purchase decisions. The pictures as well as a duplicate of your services or items should be expert. WordPress Based Purchasing Cart - If you are currently aware of WordPress or possess a WordPress site, then it might make sense to run your store on WordPress. C2C frequently takes place on online markets such as ebay.com, in which one individual sells a services or product to an additional. In the U.S., ecommerce stood for an average of 8.1% of overall retail sales through the very first three quarters of 2016-- a price that Nielsen jobs will certainly expand at an integrated average development price of 12.2% with 2020. Jeff Bezos introduced Amazon.com in 1995 mainly as an ecommerce platform for books. 21 Contemporary T-shirt developers like Balmain and also Road People Atelier generate brand-new styles of T-shirts. Forbes reported in 2016 that 57% of people checked in 24 countries throughout six continents had made an on-line acquisition in the past six months. In Business-to-Business (B2B) commerce, the critical capacity is to make sure a consistent, premium experience for your purchasers throughout self-service Shopping, contacts with your direct sales team, and communications with your network partners. BigCommerce is an example of an ecommerce system. Make certain to consult with specialists in this area who have experience in Shopping, not simply web design. Sitecore Experience Business incorporates web content as well as commerce on one platform to supply omnichannel retail experiences that thrill the right client with the appropriate offer to boost productivity. While several brick-and-mortar chains consisted of these things in their inventories, much of these t shirts were spearheaded by on the internet startups. Go with t-shirts with pockets or a flannel shirt Something's for certain, Tillys is the place for terrific costs on males's tees. ( 1) The European Union is looking for to forge ever before closer web links between the States and also individuals of Europe, to ensure economic as well as social progress; based on Short article 14( 2) of the Treaty, the internal market comprises a location without interior frontiers in which the free activities of products, services and also the liberty of facility are made sure; the advancement of info society solutions within the area without internal frontiers is crucial to removing the barriers which split the European peoples. You may not utilize this Shop or details located at this web site for selling or advertising product and services, getting clients, or any other business purpose. There are also committed evaluation websites that organize user testimonials for different products. Your customers send you signals every time they interact with your brand; online as well as offline. High road tee shirts are t-shirts that you typically find in packs. New: wpsc_single_purchase_log_date_time_format and also wpsc_single_purchase_log_date_format (Utilized in brand-new Sales Log UI). Jennifer Silverberg works with a worldwide team in order to help significant CPG business such as P&G, Unilever and Nestle own as well as drive their consumers' buying experience. One of the earliest types of ecommerce is the C2C ecommerce service design. Paris Style Week 2014 featured a grunge style Tees. While it is possible to purchase significant subscriber list of e-mail addresses that could be used for marketing your product, you are most likely to shut off lots of possible customers by engaging in this method. No matter what you sell, you need safe as well as scalable e-commerce solutions that satisfy the needs of both your customers and organisation. Please note that both in-store pick-up times as well as Publish & Copy Solutions will certainly vary and undergo the regards to each order as divulged throughout checkout.
0 notes
reginazablog · 7 years ago
Text
Company Networking Articles.
Ecommerce tools to create personalized design templates that offer your registrations, products, or solutions. SWAROVSKI could send e-newsletters or various other commercial communications in connection with its product or services to CLIENTS and also PARTNERS. With restricted edition T-shirts going down twice on a monthly basis, it's your only chance to police officer an unique and be a part of Gymshark background. Given that the 1980s, T-shirts have flourished as a kind of individual expression 8 Screen published T-shirts have been a basic type of marketing for significant American consumer items, such as Coca-Cola and Mickey Mouse, considering that the 1970s. Some 600m Chinese live rurally as well as their shopping practices are encouraging the ecommerce boom, inning accordance with official figures. Fix: Products are sometimes shown also when items page is set to just present listing of categories. Alibaba prices are incredibly reduced as they're wholesale costs to allow businesses to earn a profit off of their products. From mobile buying to on the internet repayment security as well as past, ecommerce incorporates a wide range of data, systems, and tools for both online customers and also vendors. Magento also uses a scholastic version of our software that is best for learning programmers or small companies with less than $500,000 in on-line sales. Houzz's Visual Match scans images on the platform and also identifies similar items available in the Houzz Store, which includes more than 8 million house decor items. Clients can also review and also track the order background online. 2016 ecommerce data on deliveries, sales and also profits from four industries of the economic situation: manufacturing, wholesale, services and retail. An ecommerce platform is a software application tool that allows sellers to build and also tailor electronic storefronts and to manage their internet site, sales, and ecommerce operations from a central hub. It's time for one of our tees if you're prepared to share your geekiness without saying one word. In the event the CLIENT does not wish such a computerized entering into a contract, it has the option to buy products and services from SWAROVSKI at physical shops run by SWAROVSKI and its stores. In Addition, Ecommerce Europe gives certified online business across Europe with a European Trustmark label, with the aim of raising consumers' count on cross-border purchases. Ecommerce (as well as now omni-channel retail) has actually had a major influence on clients. Your consumers anticipate you to utilize info from the sales phase in the revival, invoicing and contracting stages. It likewise lets sellers include text stickers" as well as web links that make it less complicated for consumers to click via to purchase or figure out their delivery costs. In Business-to-Business (B2B) business, the essential ability is to make sure a regular, top notch experience for your buyers across self-service Shopping, contacts with your straight sales team, and also interactions with your network companions. Several of Oregon's greater than 70 enterprise zones have gotten special status to further encourage digital business (or "ecommerce") financial investments. This record sums up ecommerce stats on shipments, sales as well as profits from four fields of the economic climate: production, wholesale, solutions & retail. In this Personal privacy Plan, the terms Forever 21," we," and also us" refers to For life 21, Inc E-Commerce is the sale of services and products over the Internet. Volusion - An additional preferred ecommerce option, Volusion allows vendors to produce online stores, showcase their product, as well as take settlements all on one platform. In the U.S., e-commerce stood for an average of 8.1% of overall retail sales through the very first three quarters of 2016-- a rate that Nielsen projects will grow at a combined typical development price of 12.2% via 2020. Jeff Bezos presented Amazon.com in 1995 mostly as an ecommerce system for publications. Online purchases made through the Website stand for exchange, credit score, or refund within 30 days from the ship return form as well as invoice give a postmark date that specifies the last day you need to return your merchandise by mail or to one of our shops. We're greater than simply a Shopping blog site, E-Commerce Country is a joint neighborhood dedicated to helping E-Commerce business owners on a worldwide scale. The AR sight feature lets you watch countless products in your home and workplace before you acquire them, including devices and electronics. Any kind of impacted individual, consisting of any kind of CLIENT, SITE VISITOR and PARTNER, could inquire from SWAROVSKI as to whether data concerning them is being processed. FitForCommerce shows how four Sitecore consumers integrate web content as well as commerce effectively to supply seamless tailored experiences. Let us assist procedure orders fast throughout several shops, and also give up-to-date tracking for you as well as your customers with UPS industry delivery. Before ecommerce, a person would certainly need to estimate the amount of components would be required over a details time period as well as order those components wholesale. In the decade finishing with the very first quarter of 2018, e-commerce sales in the U.S. grew from much less compared to 4 percent of all retail sales to more than 9 percent of all retail sales, inning accordance with U.S. Census Bureau statistics In complete dollars, retail electrical outlets in the U.S. made about $123.7 billion worth of on the internet sales during the very first quarter of 2018, as compared to regarding $1.3 trillion well worth of total sales. I had a pal at once in my life that informed me she would intentionally "steal" other individuals's energy and feed off of other people vigorously. An Omni-Channel B2B Ecommerce Platform provides you the capability to provide consistent, optimized purchasing experiences throughout all sales channels. If this switch is clickable and also active, that item is qualified for Buy Online, Pick Up in Shop as well as offered in select COCK'S Sporting Item stores. Learn how you can manage your on-line store with Shopify Guides. This makes it very easy to pay for products online, enabling secure electronic settlements by means of bank card, debit cards, or present cards, which is far more effective than creating and also mailing checks. In this resource, we take a deep check out the ecommerce industry-- exactly how it transpired, what kinds of sellers are available, and also just what systems make it possible for on-line selling. 2014: United States ecommerce and Online Retail sales projected to reach $294 billion, a rise of 12 percent over 2013 as well as 9% of all retail sales. Buying cart software application is an os utilized to permit customers to buy items and also or solutions, track clients, and also tie together all elements of ecommerce into one cohesive whole. shopify profits course 2018 calls for each vendor as well as consumer to establish a dedicated data web link (between them), where ecommerce offers an economical technique for companies to establish several, ad-hoc web links.
1 note · View note
sitecoreuio · 8 years ago
Text
How to add a button to the ribbon
How to add a button to the ribbon
In this post I will explain how to add a custom button to the Sitecore Content Editor ribbon.
There are three main concepts.
The first one is Sitecore Ribbon. It is the top section of different menus that content editor offer to the editors. The second one is a Sitecore strip. Strip is the complete group of buttons that belong to a specific set. A ribbon is composed of many Sitecore strips. The third one is Sitecore chunk. Chunk is a specifc group of button(s). A Sitecore strip is composed of different Sitecore chunks.
Tumblr media
These are the general steps to add a button to the Sitecore ribbon:
Inside the Core database
Tumblr media
Create a chunk. The most important properties of this is the Click property. This property will contain an alias that later will be hooked to a portion of code that does the job of this button. For this import the Click property value is: democom:instagramimport
Tumblr media
Add the chunk to either a new strip or to an existint strip. Link the refernce property to the chunk previously created.
Tumblr media
Add the new strip to the ribbon. This is needed only if in the previous step you created a new strip instead of using an existing one. In the default ribbon, add a new system reference and link in the reference property to the previously craeted strip.
We have completed all the steps needed to add a new button to the ribbon. Now it is time to setup the code that will execute the action for when the button is clicked.
First lets create a public class that inhertis from the Sitecore.Shell.Framework.Commands.Command class. We will need to override the Execute method behavior. Here is where the functionality of the button will live. Let's look at the code:
public override void Execute(CommandContext context) { if (context == null) return; try { Log.Info("InstagramImportCommand Started!", this); ProgressBox.Execute("Instagram Import API", "Instagram", "Applications/32x32/refresh.png", Refresh); Log.Info("InstagramImportCommand Finished!", this); } catch (Exception ex) { Log.Error("Error!", ex, this); } } public void Refresh(params object[] parameters) { InstagramManager.Refresh(); }
In the Execute method we are calling the Refresh method from this same class that will execute the functionality that I need. As you can notice we are setting up a ProgressBox tool, this will allow the editor to know that the process is still executing.
Tumblr media
The final step is to include a config file that will link the alias (democom:instagramimport) that we have setup for the chunk and the class that will handle the click of the button.
This post was developed for Sitecore 8.1 version.
This post was created by Carlos Araujo. You can contact me in twitter @caraujo
0 notes
miamijobsource · 8 years ago
Text
.NET Web Developer 85K + Sitecore 8.1 Certification Training
.NET Web Developer 85K + Sitecore 8.1 Certification Training
.NET Web Developer 85K + Sitecore 8.1 Certification Training, Boca Raton My client, a Sitecore Partner is looking to train up a .NET web developer in Sitecore version 8.1. In this role you will spend several be learning best practices with Sitecore from a Read the full post: : .NET Web Developer 85K + Sitecore 8.1 Certification Training
View On WordPress
0 notes
coderscenter-blog · 9 years ago
Link
0 notes
igmguru1-blog · 6 years ago
Link
IgmGuru's Sitecore Developer Training Program will outfit you with a significant information and hands-on sensible sessions to set up the designers to build a solid, genuine MVC Solutions that collaborate with the organization, modifying of substance and its promoting limits of Sitecore 8.0, 8.1, 8.2 and 9.0 The course content is arranged by the invigorated timetable of Sitecore Developer Certification Guide.
0 notes
sitecoreuio · 8 years ago
Text
Sitecore and Solr configuration
.li{ margin-bottom:10px; }
On this post I would like to detail a few important steps that you should follow when setting up Solr as the search engine for your Sitecore instance.
For this post I am using Sitecore 8.1 160302 (Update 2). The recommended Solr version is Solr 5.4.1, you can download it from here: http://archive.apache.org/dist/lucene/solr/
Install SOLR 5.4.1 to your local environment.
Copy the directory {installation location}\solr-5.4.1\server\solr\configsets\basic_configs to {installation location}\solr-5.4.1\server\solr\ and rename it sitecore_analytics_index.
Open up Sitecore CMS and navigate to the Control Panel.
Go to the link action "Generate the Solr Schema.xml file". Navigate to the schema.xml file under the directory you copied in the previous step. Replace the old schema file with the newly generated schema. The schema.xml file attached to this page already has all the needed fields, use that file if you want to skip this step and jump to step 7.
Open up the schema file and add the following field <fieldType name="pint" class="solr.TrieIntField"/>
The Sitecore schema generator may not include the dynamic fields for multiple languages needed for multi-site solution. Check to make sure you have the following fields in the schema.xml file. <dynamicField name="*_t_da" type="text_general" indexed="true" stored="true" /> <dynamicField name="*_t_de" type="text_general" indexed="true" stored="true" /> <dynamicField name="*_t_ja" type="text_general" indexed="true" stored="true" />
Add a file to the root of "sitecore_analytics_index" folder and name it core.properties "properties is the extension". Open up the file in a text editor and add the following on the first line,  name=sitecore_analytics_index.
You will need a CORE for each index. Copy and paste the sitecore_analytics_index folder you created above for each of the indexes listed below. You will need to replace the text in the core.properties file for each of the cores with their name. In Sitecore 8.1, the following indexes are setup by default:
sitecore_analytics_index
sitecore_core_index
sitecore_fxm_master_index
sitecore_fxm_web_index
sitecore_list_index
sitecore_marketing_asset_index_master
sitecore_marketing_asset_index_web
sitecore_marketingdefinitions_master
sitecore_marketingdefinitions_web
sitecore_master_index
sitecore_suggested_test_index
sitecore_testing_index
sitecore_web_index
social_messages_master
social_messages_web
This is the file structure tree for a Sitecore core inside Solr
Tumblr media
Once you have all the indexes/cores setup you have two options either run Solr from the command window or install it as a service. From a local development perspective I prefer to run it from the command window to avoid populating the services list with different Solr instances/versions.
To run it from the command window you can do the following:
To start it
Open a command prompt and navigate to the Solr bin folder {installation location}/bin
Type solr start
Top stop it:
Open a command prompt and navigate to the Solr bin folder {installation location}/bin
Type solr stop -p 8983 Note: I am assuming you are running Solr in the default port (8983)
This post was created by Carlos Araujo. You can contact me in twitter @caraujo
0 notes